package com.yalu.entity.data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yalu.entity.base.BaseEntity;

@Entity
@Table(name = "itemdata")
public class ItemData extends BaseEntity{

	private static final long serialVersionUID = 1331920086579824915L;
	private ItemDataKey itemDataKey;// 
	private String store_name;// 
	private long views;// 
	private Float guests;// 
	private float avg_item;// 
	private float avg_cost;// 
	private float success_rate;// 
	private long networkio;// 
	private int isdeleted;// 
	private String createdt;// 
	private int createby;// 
	private String updatedt;// 
	private Integer updateby;// 
	public ItemData() {
	}
//	public ItemData(String[] arr) {
//		ItemDataKey itemDataKey = new ItemDataKey();
//		itemDataKey.setNo(Integer.parseInt(arr[0]));
//		itemDataKey.setData_date(arr[2]);
//		this.setItemDataKey(itemDataKey);
//		this.setStore_name(arr[1]);
//		this.setViews(Long.parseLong(arr[4]));
//		this.setGuests(Long.parseLong(arr[3]));
//		this.setAvg_item(Float.parseFloat(arr[5]));
//		this.setAvg_cost(Float.parseFloat(arr[6]));
//		this.setSuccess_rate(Float.parseFloat(arr[7]));
//		this.setNetworkio(Long.parseLong(arr[8]));
//		
//	}
	@Id
	public ItemDataKey getItemDataKey() {
		return itemDataKey;
	}
	public void setItemDataKey(ItemDataKey itemDataKey) {
		this.itemDataKey = itemDataKey;
	}
	public String getStore_name() {
		return store_name;
	}
	public void setStore_name(String store_name) {
		this.store_name = store_name;
	}
	
	public long getViews() {
		return views;
	}
	public void setViews(long views) {
		this.views = views;
	}

	public Float getGuests() {
		return guests;
	}
	public void setGuests(Float guests) {
		this.guests = guests;
	}
	public float getAvg_item() {
		return avg_item;
	}
	public void setAvg_item(float avg_item) {
		this.avg_item = avg_item;
	}
	public float getAvg_cost() {
		return avg_cost;
	}
	public void setAvg_cost(float avg_cost) {
		this.avg_cost = avg_cost;
	}
	public float getSuccess_rate() {
		return success_rate;
	}
	public void setSuccess_rate(float success_rate) {
		this.success_rate = success_rate;
	}
	public long getNetworkio() {
		return networkio;
	}
	public void setNetworkio(long networkio) {
		this.networkio = networkio;
	}
	public int getIsdeleted() {
		return isdeleted;
	}
	public void setIsdeleted(int isdeleted) {
		this.isdeleted = isdeleted;
	}
	public String getCreatedt() {
		return createdt;
	}
	public void setCreatedt(String createdt) {
		this.createdt = createdt;
	}
	public int getCreateby() {
		return createby;
	}
	public void setCreateby(int createby) {
		this.createby = createby;
	}
	public String getUpdatedt() {
		return updatedt;
	}
	public void setUpdatedt(String updatedt) {
		this.updatedt = updatedt;
	}
	public Integer getUpdateby() {
		return updateby;
	}
	public void setUpdateby(Integer updateby) {
		this.updateby = updateby;
	}
	
}
